<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Posts extends CI_Controller {
	 
	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
		$this->load->helper(array('form', 'url'));
		$this->load->library('session');	
		$this->load->database();
		$this->load->library('form_validation');
    } 
	public function post()
	{
			$text = $_POST['text'];     
			$fp = fopen(dirname($_SERVER["SCRIPT_FILENAME"]) ."/log.html", 'a');
			fwrite($fp,$text);
			fclose($fp);
	}
}
